package com.bw.usercenter.adapter

import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CircleCrop
import com.bw.usercenter.R
import com.bw.usercenter.model.protocol.resp.RespRecommendEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
//
class MyRecommentAdapter( data: MutableList<RespRecommendEntity.Data>?
) :
    BaseQuickAdapter<RespRecommendEntity.Data, BaseViewHolder>(R.layout.itemrecomment, data) {
    override fun convert(holder: BaseViewHolder, item: RespRecommendEntity.Data) {
        Glide.with(context).load("http://p0.qhimg.com/bdm/1366_768_85/t01bfba0fc70ae2812f.jpg").transform(CircleCrop()) .into(holder.getView(R.id.itemrecomment_img))
        holder.setText(R.id.itemrecomment_text,item.category_name)
    }
}